package com.xiaohe66.web.integration.value;

import com.xiaohe66.web.integration.domain.IntValue;
import lombok.EqualsAndHashCode;

/**
 * @author He
 * @since 2024.03.21 15:16
 */
@EqualsAndHashCode(callSuper = true)
public class YearValue extends IntValue {

    private YearValue(int value) {
        super(value);
    }

    @Override
    public String toString() {
        return "Year(" + getValue() + ")";
    }

    public static YearValue valueOf(int value) {
        return new YearValue(value);
    }
}
